package com.netdisk.Domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author DingTian
 * @since 2023-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private String id;

    private String username;

    private String  telephone;

    private String password;

    private long storage_size;

    @TableField("create_time")
    private String createTime;


    public User(String telephone, String password) {
        this.telephone = telephone;
        this.password = password;
    }

    public User(String telephone) {
        this.telephone = telephone;
    }

    public User() {

    }
}
